<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加老师</title>
</head>
<body>
    <form method="post" action="insertTeacher">
        老师名字:<input type="text" name="name"><br>
        老师密码:<input type="text" name="password"><br>
        老师性别:<input type="text" name="sex"><br>
        老师年龄:<input type="text" name="age"><br>
        科目:
        {foreach($select_c_name as $key=>$value)}
            {$value.name}<input type="checkbox" name="c_name[{$value.id}] " value="{$value.id}"> &nbsp &nbsp
        {/foreach}
        <button type="submit">提交</button>
    </form>

</body>
</html>